<template>
  <div class="div">
     <ul>
        <!-- <li>
           <router-link to="/home" active-class="hhb">首页</router-link> 
        </li>
        <li>
           <router-link to="/Cinema" active-class="hhb">电影</router-link> 
        </li>
        <li>
           <router-link to="/user" active-class="hhb">我的</router-link> 
        </li>
        <li>
           <router-link to="/aboat" active-class="hhb">关于</router-link> 
        </li> -->
        <!-- custom 加这个属性就是定制  {isActive,navigate}固定属性解构 -->
        <router-link custom to="/home" v-slot="{isActive,navigate}">
            <li :class="isActive?'hhb':''" @click="navigate">首页</li>
        </router-link>
        <router-link custom to="/cinema" v-slot="{isActive,navigate}">
            <li :class="isActive?'hhb':''" @click="navigate">电影</li>
        </router-link>

        <router-link custom to="/user" v-slot="{isActive,navigate}">
            <li :class="isActive?'hhb':''" @click="navigate">我的</li>
        </router-link>
        <router-link custom to="/aboat" v-slot="{isActive,navigate}">
            <li :class="isActive?'hhb':''" @click="navigate">关于</li>
        </router-link>
     </ul>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.div{
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100px;
    line-height: 100px;
    text-align: center;
}
.div ul{
    display: flex;
}
.div ul li{
    flex: 1;
    background-color: rgba(0, 0, 0, 0.64);
}
 .hhb {
    color: chartreuse!important;
    
}
</style>